package br.ufrj.dcc.recinfo.bullsearch;

import java.io.IOException;

import org.apache.lucene.queryParser.ParseException;

import br.ufrj.dcc.recinfo.bullsearch.lucene.LuceneIndexer;
import br.ufrj.dcc.recinfo.bullsearch.lucene.LuceneSearch;

public class BullSearch {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		LuceneIndexer indexer;
		LuceneSearch searcher;
		try {
			indexer = new LuceneIndexer();
			indexer.start();
			
			searcher = new LuceneSearch();
			searcher.search("casa");
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
